import request from '@/utils/request'

export function getImageList(params) {
    return request({
        url: 'oss/api/images',
        method: 'get',
        params
    })
}

export function deleteImage(key) {
    return request({
        url: `oss/api/images/${key}`,
        method: 'delete',
    })
}

export function batchDeleteImages(ids) {
    return request({
        url: 'oss/api/images/batch',
        method: 'delete',
        data: ids
    })
}

export function clearAllImages() {
    return request({
        url: 'oss/api/images/clear-all',
        method: 'delete'
    })
}

export function triggerCleanup() {
    return request({
        url: 'schedule/api/schedule/cleanup',
        method: 'post'
    })
}